// part of 'home_card.dart';

import 'package:center_bus/center_bus.dart';
import 'package:flutter/material.dart';
import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart';

class HomeCardImpl2 extends HomeCard {
  @override
  Widget getCard() {
    List<Widget> cards = [
      Get.find<MicrophoneArrayCard>().getCard(),
      Get.find<DtsSoundEffectCard>().getCard(),
      Get.find<MyDevicesCard>().getCard(),
      Get.find<ClipBoardCard>().getCard(),
    ];
    return Container(
        padding: const EdgeInsets.fromLTRB(40, 8, 20, 0),
        child: Row(children: [
          Get.find<PCConnectionCard>().getCard(),
          const SizedBox(
            width: 40,
          ),
          Expanded(
              child: Column(
                children: [
                  Get.find<BannerCard>().getCard(),
                  const SizedBox(
                    height: 20,
                  ),
                  Expanded(
                    child: MasonryGridView.builder(
                      itemCount: cards.length,
                      itemBuilder: (BuildContext context, int index) {
                        return cards[index];
                      },
                      mainAxisSpacing: 20,
                      crossAxisSpacing: 20,
                      gridDelegate:
                          const SliverSimpleGridDelegateWithMaxCrossAxisExtent(
                              maxCrossAxisExtent: 400),
                    ),
                  )
                ],
                //
              )),
        ]));
  }
}
